package color.koitq.picker.entity;

import android.os.Parcel;
import android.os.Parcelable;

import org.litepal.crud.LitePalSupport;

import java.util.ArrayList;
import java.util.List;

public class Tab3Model extends LitePalSupport implements Parcelable {
    public long id;
    public String img;
    public int type;
    public String color1;
    public String color2;
    public String color3;
    public String color4;
    public String color5;
    public int flag;
    public int collection=0;

    public Tab3Model() {
    }


    protected Tab3Model(Parcel in) {
        id = in.readLong();
        img = in.readString();
        type = in.readInt();
        color1 = in.readString();
        color2 = in.readString();
        color3 = in.readString();
        color4 = in.readString();
        color5 = in.readString();
        flag = in.readInt();
        collection = in.readInt();
    }

    public static final Creator<Tab3Model> CREATOR = new Creator<Tab3Model>() {
        @Override
        public Tab3Model createFromParcel(Parcel in) {
            return new Tab3Model(in);
        }

        @Override
        public Tab3Model[] newArray(int size) {
            return new Tab3Model[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(id);
        dest.writeString(img);
        dest.writeInt(type);
        dest.writeString(color1);
        dest.writeString(color2);
        dest.writeString(color3);
        dest.writeString(color4);
        dest.writeString(color5);
        dest.writeInt(flag);
        dest.writeInt(collection);
    }
}
